package zust.study.设计模式.创建型模式.工厂模式;

public class FactoryPatternDemo {
    public static void main(String[] args) {
        ShapeFactory shapeFactory = new ShapeFactory();

        Shape shape1 = shapeFactory.getShape("circle");
        Shape shape2 = shapeFactory.getShape("square");
        shape1.draw();
        shape2.draw();

    }
}
